package edu.wit.acl.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("acl_project")
@ApiModel(value = "project项目对象", description = "项目表")
public class Project implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "项目id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "项目名")
    private String name;

    @ApiModelProperty(value = "项目类别")
    private String projectType;

    @ApiModelProperty(value = "项目状态")
    private String projectStatus;

    @ApiModelProperty(value = "工程用途")
    private String projectPurpose;

    @ApiModelProperty(value = "结构类型")
    private String structureType;

    @ApiModelProperty(value = "工程规模")
    private String scale;

    @ApiModelProperty(value = "项目介绍")
    private String introduction;

    @ApiModelProperty(value = "项目逻辑状态")
    private String status;

    @ApiModelProperty(value = "项目地址")
    private String address;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    @TableField(fill = FieldFill.INSERT)
    private Date startDataPlan;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date endDataPlan;

}
